<?php 
namespace app\common\validate;

use think\Validate;

class Staffdepart extends Validate
{
	protected $rule = [
			'depart_id'  =>  'require',
			'post_id' =>  'require',
			'salary' =>  'require',
			'no' =>  'require',
			'entry_time' =>  'require',
	];
	
	protected $message = [
			'depart_id.require'  =>  '请选择部门',
			'post_id.require' =>  '请选择岗位',
			'salary.require' =>  '薪资不能为空',
			'no.require' =>  '编号不能为空',
			'entry_time.require' =>  '入职时间不能为空',
	];
	
	protected $scene = [
			'add'   =>  ['depart_id','post_id','salary','no','entry_time'],
	];
}